-- @preview-file on clear

-- config/game_config.lua
-- 游戏配置

local GameConfig = {}

-- 掉落死亡高度
GameConfig.DEATH_FALL_HEIGHT = -500

-- 敌人生成配置
GameConfig.ENEMY_SPAWN = {
    -- 关卡敌人密度（每切片）
    DENSITY_PER_TILE = 2,
    
    -- 敌人类型分布
    TYPE_DISTRIBUTION = {
        sword = 0.4,      -- 40% 剑士
        archer = 0.3,     -- 30% 弓箭手
        broadsword = 0.3  -- 30% 刀兵
    },
    
    -- 生成位置偏移
    SPAWN_OFFSET_Y = 200
}

-- Boss配置
GameConfig.BOSS = {
    HEALTH = 500,
    ATTACK_RANGE = 200,
    MOVE_SPEED = 180,
    ATTACK_COOLDOWN = 2.0,
    ANGRY_THRESHOLD = 0.5  -- 50%血量进入狂暴
}

-- 玩家配置
GameConfig.PLAYER = {
    INITIAL_HEALTH = 200,
    ATTACK_RANGE = 100,
    INVINCIBLE_TIME = 0.5  -- 受伤无敌时间
}

return GameConfig